﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyThuVien.VO;
using QuanLyThuVien.DAL;
using System.Data;
using System.Data.SqlClient;
using System.Data.Sql;

namespace QuanLyThuVien.BUS
{
    class busSach
    {
        daoSach DAL = new daoSach();

        public bool SuaSach(Sach Obj)
        {
            return DAL.SuaSach(Obj.MaSach, Obj.TenSach, Obj.TacGia, Obj.NhaXuatBan);
        }

        public bool XoaSach(Sach Obj)
        {
            return DAL.XoaSach(Obj.MaSach);
        }

        public bool ThemSach(Sach Obj)
        {
            return DAL.ThemSach(Obj.MaSach, Obj.TenSach, Obj.TacGia, Obj.NhaXuatBan);
        }

        public DataTable TimSach(Sach Obj)
        {
            return DAL.TimSach(Obj.MaSach, Obj.TenSach, Obj.TacGia, Obj.NhaXuatBan);
        }
    }
}
